package com.winona.code;

import java.util.ArrayList;
import java.util.List;

import com.winona.bean.Paper;


public class ImDataCenter extends DataManager implements Resource {

	public static final String MENU_REFRESH = "menu_refresh";

	public static final int PAGE_SIZE = 10;
	public static final int MAX_FILE_SIZE = 30; // 30M
	private boolean userLogin=true;
	private boolean isHome = true;
	private boolean isSensitive = true;
	private boolean isAcne = true;
	private boolean isStain = true;
	private boolean isDry = true;
	private boolean isComplex = true;
	private boolean isCosmetology = true;
	private boolean isConversation = true;
	private boolean isTest = true;
	private boolean isCenter = true;
	private boolean isAcademic = true;

	private int home;
	
	private List<Paper> pageList = new ArrayList<Paper>();
	
	public List<Paper> getPageList() {
		return pageList;
	}

	public void addPageList(){
		
	}
	
	public Paper getPageById(long id)
	{
		return null;
	}
	
	public void setPageList(List<Paper> pageList) {
		this.pageList = pageList;
	}

	public boolean isSensitive() {
		return isSensitive;
	}

	public void setSensitive(boolean isSensitive) {
		this.isSensitive = isSensitive;
	}

	public boolean isAcne() {
		return isAcne;
	}

	public void setAcne(boolean isAcne) {
		this.isAcne = isAcne;
	}

	public boolean isStain() {
		return isStain;
	}

	public void setStain(boolean isStain) {
		this.isStain = isStain;
	}

	public boolean isDry() {
		return isDry;
	}

	public void setDry(boolean isDry) {
		this.isDry = isDry;
	}

	public boolean isComplex() {
		return isComplex;
	}

	public void setComplex(boolean isComplex) {
		this.isComplex = isComplex;
	}

	public boolean isCosmetology() {
		return isCosmetology;
	}

	public void setCosmetology(boolean isCosmetology) {
		this.isCosmetology = isCosmetology;
	}

	public boolean isConversation() {
		return isConversation;
	}

	public void setConversation(boolean isConversation) {
		this.isConversation = isConversation;
	}

	public boolean isTest() {
		return isTest;
	}

	public void setTest(boolean isTest) {
		this.isTest = isTest;
	}

	public boolean isCenter() {
		return isCenter;
	}

	public void setCenter(boolean isCenter) {
		this.isCenter = isCenter;
	}

	public int getSensitive() {
		return sensitive;
	}

	public void setSensitive(int sensitive) {
		this.sensitive = sensitive;
	}

	public int getAcne() {
		return acne;
	}

	public void setAcne(int acne) {
		this.acne = acne;
	}

	public int getStain() {
		return stain;
	}

	public void setStain(int stain) {
		this.stain = stain;
	}

	public int getDry() {
		return dry;
	}

	public void setDry(int dry) {
		this.dry = dry;
	}

	public int getComplex() {
		return complex;
	}

	public void setComplex(int complex) {
		this.complex = complex;
	}

	public int getCosmetology() {
		return cosmetology;
	}

	public void setCosmetology(int cosmetology) {
		this.cosmetology = cosmetology;
	}

	public int getConversation() {
		return conversation;
	}

	public void setConversation(int conversation) {
		this.conversation = conversation;
	}

	public int getTest() {
		return test;
	}

	public void setTest(int test) {
		this.test = test;
	}

	public int getCenter() {
		return center;
	}

	public void setCenter(int center) {
		this.center = center;
	}
	private int userInfo;
	public boolean isUserLogin() {
		return userLogin;
	}

	public void setUserLogin(boolean userLogin) {
		this.userLogin = userLogin;
	}

	public int getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(int userInfo) {
		this.userInfo = userInfo;
	}
	
	
	
	public boolean isAcademic() {
		return isAcademic;
	}

	public void setAcademic(boolean isAcademic) {
		this.isAcademic = isAcademic;
	}
	private int sensitive;
	private int acne;
	private int stain;
	private int dry;
	private int complex;
	private int cosmetology;
	private int conversation;
	private int test;
	private int center;

	private static ImDataCenter instance;

	private ImDataCenter() {
	}

	public static ImDataCenter getInstance() {
		if (instance != null) {
			return instance;
		}
		synchronized (ImDataCenter.class) {
			if (instance == null) {
				instance = new ImDataCenter();
				ResourceManager.getInstance().addResource(instance);
			}
		}
		return instance;
	}

	public boolean isHome() {
		return isHome;
	}

	public void setHome(boolean isHome) {
		this.isHome = isHome;
	}

	public int getHome() {
		return home;
	}

	public void setHome(int home) {
		this.home = home;
	}

	@Override
	public void releaseResource() {
		// TODO Auto-generated method stub

	}

	@Override
	public void clear() {
		// TODO Auto-generated method stub

	}

}
